import {baseUrl} from "@/config/env";

export default () => {
    return {
        submitText: '修改',
        size: 'small',
        labelWidth: 120,
        index: true,
        indexLabel: "序号",
        menuAlign: 'center',
        menuPosition: "right",
        searchIndex: 1,
        searchIcon: true,
        permissionBtn: {
            addBtn: 'tpp:thirdPartyPlatformFans:add',
            editBtn: 'tpp:thirdPartyPlatformFans:edit',
            viewBtn: 'tpp:thirdPartyPlatformFans:info',
            delBtn: 'tpp:thirdPartyPlatformFans:delete',
        },
        column: [{
            "addDisplay": false,
            "editDisplay": false,
            "label": "id",
            "prop": "id",
            "hide": true,
            "type": "input"
        }, {
            "addDisplay": true,
            "editDisplay": true,
            "label": "用户名",
            "prop": "userName",
            "showColumn": true,
            "type": "input",
            search: true,
            searchModel: "#{11}",
            rules: [
                {
                    required: true,
                    trigger: "blur"
                }
            ]
        }, {
            "addDisplay": true,
            "editDisplay": true,
            "label": "昵称",
            "prop": "nickName",
            "showColumn": true,
            "type": "input",
            search: true,
            searchModel: "#{11}",
            rules: [
                {
                    required: true,
                    trigger: "blur"
                }
            ]
        },
            {
                "addDisplay": true,
                "editDisplay": true,
                "label": "头像地址",
                "prop": "avatar",
                "showColumn": true,
                "type": "input"
            },
            {
                "addDisplay": true,
                "editDisplay": true,
                "label": "手机",
                "prop": "phone",
                "showColumn": true,
                "type": "input"
            }, {
                "addDisplay": true,
                "editDisplay": true,
                "label": "住址",
                "prop": "addrsee",
                "showColumn": true,
                "type": "input"
            }, {
                "addDisplay": true,
                "editDisplay": true,
                "label": "出生日期",
                "prop": "birthday",
                "showColumn": true,
                "type": "datetime"
            }, {
                "addDisplay": true,
                "editDisplay": true,
                "label": "openId",
                "prop": "openId",
                "showColumn": true,
                "type": "input",
                editDetail: true,
            },
            {
                "addDisplay": true,
                "editDisplay": true,
                "label": "unionId",
                "prop": "unionId",
                "showColumn": true,
                "type": "input",
                editDetail: true,
            }, {
                "label": "密码",
                "prop": "password",
                "showColumn": true,
                "type": "password",
                addDisplay: true,
                editDisplay: false,
            },
            {
                "addDisplay": true,
                "editDisplay": true,
                "label": "平台类型",
                "prop": "platformType",
                "showColumn": true,
                type: "tree",
                search: true,
                dicUrl: baseUrl + "/sysDictionaryItem/listByDictionaryCode",
                dicQuery: {
                    code: "third:party:platform:configs",
                },
                parent: false,
                props: {
                    label: "name",
                    value: "dictionaryValue"
                },
                rules: [
                    {
                        required: true,
                        trigger: "blur"
                    }
                ]
            }, {
                "addDisplay": true,
                "editDisplay": true,
                "label": " 公众关注状态",
                "prop": "followState",
                "showColumn": true,
                "type": "radio",
                dicData: [
                    {label: "未关注", value: 0},
                    {label: "已关注", value: 1},
                ]
            }, {
                "addDisplay": true,
                "editDisplay": true,
                "label": "取消关注时间",
                "prop": "unFollowTime",
                "showColumn": true,
                "type": "datetime"
            }, {
                "addDisplay": true,
                "editDisplay": true,
                "label": "是否自己修改过个人信息",
                "prop": "selfModifyState",
                "showColumn": true,
                "type": "radio",
                dicData: [
                    {label: "未修改", value: 0},
                    {label: "已修改", value: 1},
                ]
            }, {
                "label": "最后一次登录时间",
                "prop": "lastLoginTime",
                "showColumn": true,
                "type": "datetime",
                editDetail: true,
                addDisplay: false,
            }, {
                "addDisplay": false,
                "editDisplay": false,
                "label": "注册时间",
                "prop": "createTime",
                "showColumn": true,
                "type": "datetime"
            }, {
                "addDisplay": false,
                "editDisplay": false,
                "label": "创建人",
                "prop": "createBy",
                "hide": true,
                "type": "input"
            }, {
                "addDisplay": false,
                "editDisplay": false,
                "label": "修改时间",
                "prop": "updateTime",
                "hide": true,
                "type": "datetime"
            }, {
                "addDisplay": false,
                "editDisplay": false,
                "label": "修改人",
                "prop": "updateBy",
                "hide": true,
                "type": "input"
            }
        ]

    }
}
